home *** CD-ROM | disk | FTP | other *** search
- <?xml version='1.0' ?>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output method="xml" indent="yes" />
- <xsl:variable name="files" select="document ('c:\\files.xml')" />
- <xsl:variable name="alltotal" select="number (0)" />
- <xsl:template match="/">
- <div style="font-size:18px;">
- Total Events= <xsl:value-of select="count(//Event)" />
- </div>
-
- <!--
- <xsl:for-each select="$files//file">
- fff<xsl:value-of select="." />
- ttt<xsl:value-of select="count(document(.)//Event)" /><br />
-
- <xsl:variable name="loctotal" select="$alltotal" />
- <xsl:variable name="alltotal" select="$loctotal + count(document(.)//Event)" />
-
- each <xsl:value-of select="$alltotal" /> <br />
-
-
- </xsl:for-each>
-
- Total Events= <xsl:value-of select="$alltotal" />
- -->
- </xsl:template>
- <!--
- <xsl:key name="userskey" match="Event" use="@user" />
- <xsl:variable name="userslist" select="/Root/Event[generate-id() =
- generate-id(key('userskey',
- @user)[1])]/@user" />
-
-
-
- <xsl:variable name="users" select="//Event/@user"/>
-
-
- <xsl:template match="/">
- Total = <xsl:value-of select="count($users)" />
- Total2 = <xsl:value-of select="count($userslist)" />
-
- <xsl:for-each select="$userslist">
- row
- <xsl:value-of select="current()" />
- </xsl:for-each>
- </xsl:template>
- -->
- <!--
- <xsl:key name="code-types"
- match="code"
- use="@type" />
-
- <xsl:variable name="code-types"
- select="/Root/code[generate-id() =
- generate-id(key('code-types',
- @type)[1])]/@type" />
- -->
- <!--////////////////////////////////////////////////////////////////////////////////////////////////////-->
- <!--
-
-
- <xsl:template match="/">
- <select name='test'>
- <xsl:for-each select="//Event/@user [count( @user| key('persInit', @user)[0]) = 1]">
- <option>
- <xsl:value-of select="@user" />
-
- </option>
- </xsl:for-each>
- </select>
- </xsl:template>
- -->
- <!--
- <xsl:template match="users">
- <table>
- <tr><th>partNum</th><th>Qty</th></tr>
- <xsl:for-each select="*[@user and generate-id(.)=generate-id(key('users', @user))]" >
- <xsl:value-of select="Event/@user" />
-
- </xsl:for-each>
- </table>
- </xsl:template>
- -->
- </xsl:stylesheet>
-